package object;

public class integerDemo {
    public static void main(String[] args) {
        Integer i1=new Integer(500);
        Integer i2=new Integer(500);
        System.out.println(i1==i2);
        System.out.println(i1.equals(i2));

        Integer i3=Integer.valueOf(500);
        Integer i4=Integer.valueOf(500);
        System.out.println(i3==i4);
        System.out.println(i3.equals(i4));

        Integer i5=new Integer(5);
        Integer i6=new Integer(6);
        System.out.println(i5==i6);
        Integer i8=Integer.valueOf(100);
        Integer i9=Integer.valueOf(100);
        System.out.println(i8.equals(i9));

        Integer i=5;
        int j=i;
        int max=Integer.MAX_VALUE;
        int min=Integer.MIN_VALUE;
        System.out.println("int的最大值为："+max+",最小值为："+min);
        long max1=Long.MAX_VALUE;
        long min1=Long.MIN_VALUE;
        System.out.println("long的最大值为："+max1+",最小值为："+min);

        String s1="364";
        int de=Integer.parseInt(s1);
        System.out.println(de);
        String fu="12.36";
        double re=Double.parseDouble(fu);
        System.out.println(re);

        String dd="151";
        int ee= Integer.parseInt(dd);
        System.out.println(ee);
        String ff="15.360";
        double pp=Double.parseDouble(ff);
        System.out.println(pp);



    }
}
